function jsonp(url, data, cb){
    let str = "";
    for(let i in data){
        str += `${i}=${data[i]}&`
    }
    const script = document.createElement("script");
    script.src = url + "?" + str.slice(0,-1);
    document.body.appendChild(script);
    window[data[data.cbNameFieldName]] = function(res){
        cb(res);
    }
}